#include "GearBoxLowSpeed.h"
#include "WPILib.h"

GearBoxLowSpeed::GearBoxLowSpeed() {
	// Use requires() here to declare subsystem dependencies
	Requires(transmission);
	SetTimeout(0.1);
}

// Called just before this Command runs the first time
void GearBoxLowSpeed::Initialize() {
}

// Called repeatedly when this Command is scheduled to run
void GearBoxLowSpeed::Execute() {
	transmission->shiftDown();
}

// Make this return true when this Command no longer needs to run execute()
bool GearBoxLowSpeed::IsFinished() {
	return IsTimedOut();
}

// Called once after isFinished returns true
void GearBoxLowSpeed::End() {
	transmission->valveOff();
}

// Called when another command which requires one or more of the same
// subsystems is scheduled to run
void GearBoxLowSpeed::Interrupted() {
}
